<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<hdjs/>
<script type="text/javascript">
	$(function(){
		setInterval(function(){
			$.ajax({
			url : APP + '&c=Comment&m=ajax_get_comment',
			data:{aid : {$_GET['aid']}},
			type : 'post',
			dataType : 'json',
			cache:false,
			beforeSend:function(){
				$('#loading').show();
			},
			success:function(data){
				$('#loading').hide();
				var comment = '';
				$.each(data, function(k, v) {
					comment += '<li>' + (k+1) + '楼：' + v.comcon + '</li>';
				});

				$('.comment-ul').html(comment);
			}
		})
		},1000);
		
	})
</script>
<title></title>
<link rel="stylesheet" href="__TEMPLATE__/css/page.css" />
<include file="__TEMPLATE__/head.html"/>
	<!-- 主体区域 -->
	<div id="page_main">
	<include file="__TEMPLATE__/right.html"/>
		<!-- 左侧 -->
		<div class="left">
			<h1><a href="">{$article.title}</a></h1>
			<!-- 文章信息 -->
			<div class="article_info_box">
				<p class="article_info">
					<span class="padding_right">{$article.sendtime|date:'Y/m/d H:i:s',@@}</span>
					分类：<a href="{$article.curl}" class="padding_right">{$article.cname}</a>
					<a href="" class="padding_right comment">{$article.total}条评论</a>
					<span id="click"><script type="text/javascript" src="{|U:'Details/get_click',array('aid'=>$_GET['aid'])}"></script></span>次浏览
				</p>
			</div>
			<!-- 文章信息结束 -->

			<!-- 文章内容区域 -->
			<div class="article_content">
				{$article.content}
			</div>
			<!-- 文章内容区域结束 -->

			<p class="position">当前位置：<a href="{$article.curl}">{$article.cname}分类</a> » <a href="">{$article.title}</a></p>
			<p class="tags">
				继续浏览有关
				<!-- //标签 -->
				<a href="">PHP</a><a href="">JS</a>
				的文章</p>
			<!-- 相关文章 -->
			<ul id="msg_list" class="msg_list">
				<p id="loading">
					<img src="__TEMPLATE__/images/loading.gif" style='width:50px;height:50px;'>
				</p>
				<div>
					评论：
					<ul class="comment-ul">
						
					</ul>
				</div>
			</ul>
			<div id="comment-form-box">
				<form id="commentForm" action="" method="post">	
					<textarea id="comment_content" name="comcon"></textarea>
					<input class='submit' type="submit" value="发表评论">
				</form>
			</div>	
	<!-- 主体区域结束 -->
	<include file="__TEMPLATE__/foot.html"/>